package com.yjl.hotel.activity;

import java.util.ArrayList;
import java.util.List;

import com.yjl.hotel.R;

import android.app.Activity;
import android.os.Bundle;
import android.support.v4.view.PagerAdapter;
import android.support.v4.view.ViewPager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;

public class BookHotel extends Activity {

//	private View image1;
//	private View image2;
//	private View image3;
//	private View image4;
//	private View image5;
//	private ViewPager viewPager;	
//	private List<View> viewList;
//	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.hotel_book);
		
//		viewPager = (ViewPager) findViewById(R.id.viewPager);
//		LayoutInflater inflater = getLayoutInflater();
//		image1 = inflater.inflate(R.layout.image1, null);
//		image2 = inflater.inflate(R.layout.image2, null);
//		image3 = inflater.inflate(R.layout.image3, null);
//		image4 = inflater.inflate(R.layout.image4, null);
//		image5 = inflater.inflate(R.layout.image5, null);
//		
//		viewList = new ArrayList<View>();
//		viewList.add(image1);
//		viewList.add(image2);
//		viewList.add(image3);
//		viewList.add(image4);
//		viewList.add(image5);
//		
//		PagerAdapter pagerAdapter = new PagerAdapter() {
//			
//			@Override
//			public boolean isViewFromObject(View arg0, Object arg1) {
//				// TODO Auto-generated method stub
//				return arg0 == arg1;
//			}
//			
//			@Override
//			public int getCount() {
//				// TODO Auto-generated method stub
//				return viewList.size();
//			}
//
//			@Override
//			public void destroyItem(ViewGroup container, int position,
//					Object object) {
//				// TODO Auto-generated method stub
//				container.removeView(viewList.get(position));
//			}
//
//			@Override
//			public Object instantiateItem(ViewGroup container, int position) {
//				// TODO Auto-generated method stub
//				container.addView(viewList.get(position));
//				return viewList.get(position);
//			}
//			
//		};
//		
//		viewPager.setAdapter(pagerAdapter);
	}

}
